import java.util.Scanner;

public class while03 {
    public static void main(String[] args) {
        Scanner SC = new Scanner(System.in);
        System.out.println("输入一个整数");
        int x =SC.nextInt();
        int num = 0;
        int a=x;
        while (x>0){
            int ge = x%10;
            x=x/10;
            num = num*10+ge;
        }
        System.out.println(num==a);
    }
}
